<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;

class SeedTagsData extends Migration
{

    public function up()
    {
        $at = now();

        $categories = [
            [
                'name' => 'PHP',
                'created_at' => $at,
                'updated_at' => $at,
            ], [
                'name' => 'CSS',
                'created_at' => $at,
                'updated_at' => $at,
            ], [
                'name' => 'HTML',
                'created_at' => $at,
                'updated_at' => $at,
            ], [
                'name' => 'JS',
                'created_at' => $at,
                'updated_at' => $at,
            ], [
                'name' => 'Laravel',
                'created_at' => $at,
                'updated_at' => $at,
            ], [
                'name' => 'ThinkPHP',
                'created_at' => $at,
                'updated_at' => $at,
            ],
        ];

        DB::table('tags')->insert($categories);
    }

    public function down()
    {
        DB::table('tags')->truncate();
    }
}
